'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  // 账号密码登录
  router.post('/login', controller.login.index);
  // 数据列表
  router.get('/getList', controller.list.index);
  //添加
  router.post('/addList', controller.list.addList);
  // 修改
  router.put('/editList', controller.list.editList);
  // 删除
  router.delete('/delList', controller.list.delList);
};
